import {request} from '@umijs/max';
export async function signin(data) {
    return request('/api/signin',{
        method:'POST',
        headers:{//请求头
            'Content-Type':"application/json"
        },
        data//请求体
    });
}
//获取用户列表
export async function getUser() {
    return request('/api/user',{
        method:'GET'
    });
}
//删除用户
export async function deleteUser(ids) {
    return request(`/api/user/${ids[0]}`,{
        method:'DELETE',
        data:ids
    });
}
